/***
 * $HeadURL: http://gstestbbs.googlecode.com/svn/trunk/sfmforum/src/main/java/com/sfmforum/core/util/config/SfmForumResourcesLoader.java $
 * 
 **/
package com.sfmforum.core.util.config;

import java.io.InputStream;

/***
 * @author $Author: nathanliaogs@gmail.com $
 * @version $Revision: 22 $
 * @modified $Date: 2012-03-25 16:14:59 +0000 (Sun, 25 Mar 2012) $
 * 
 **/
public class SfmForumResourcesLoader {
	public static InputStream loadResourcesToInputStream(String file) {
		InputStream is = ClassLoader.getSystemResourceAsStream(file);
		if (is == null) {
			is = Thread.currentThread().getContextClassLoader()
					.getResourceAsStream(file);
		}
		return is;
	}
}
